﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DailyComics.Common.Model.Storage
{
  public interface IStorageGetStrategy
  {
    IPersistable Get(string name);
    T Get<T>(string name) where T : struct;
    IEnumerable<T> GetRange<T>(string name) where T : struct;

    bool TryGet(string name, out IPersistable obj);
    bool TryGet<T>(string name, out T val) where T : struct;
    bool TryGetRange<T>(string name, out IEnumerable<T> lst) where T : struct;
  }
}
